<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>错误</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }

        .nav {
            margin-bottom: 20px;
        }

        .nav a {
            margin-right: 15px;
            text-decoration: none;
            color: #0066cc;
        }

        .error {
            color: #dc3545;
            padding: 20px;
            border: 1px solid #f5c6cb;
            background-color: #f8d7da;
            border-radius: 5px;
        }
    </style>
</head>
<body>
<div class="nav">
    <a href="${pageContext.request.contextPath}/">首页</a>
    <a href="${pageContext.request.contextPath}/about">关于我们</a>
    <a href="${pageContext.request.contextPath}/users">用户管理</a>
</div>

<div class="error">
    <h1>操作失败</h1>
    <p>${error}</p>
    <p><a href="javascript:history.back()">返回上一页</a> 或 <a href="${pageContext.request.contextPath}/">返回首页</a>
    </p>
</div>
</body>
</html>
